<?php
class DB
{
	private static $conn;
	
	public static function getConn()
	{
		if (!self::$conn)
			self::$conn = NewADOConnection('mysql://'.DB_USER.':'.DB_PASS.'@'.DB_HOST.'/'.DB_NAME);
		
		return self::$conn;
	}
}